package top.lfyao.designpattern.details.adapter.exmple;

/**
 * 篮球适配器例子：替姚明找一个翻译适配器translator 翻译中文版的进攻和防守为英文版
 */
public class PlayerClient {
    public static void main(String[] args){
        Player a = new Forwards("科比");
        translator b = new translator("姚明");
        a.attack();
        a.defense();
        b.attack();
        b.defense();
    }
}
